//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Joanne Shaw Taylor','Byham Theater','Pittsburgh, PA','Wednesday','5/1/2024','8:00 PM','6153929','Joanne-Shaw-Taylor-5-1-2024'],['Pittsburgh Opera: The Passion Of Mary Cardwell Dawson','Byham Theater','Pittsburgh, PA','Friday','5/3/2024','7:30 PM','6286545','Pittsburgh-Opera--The-Passion-Of-Mary-Cardwell-Dawson-5-3-2024'],['Pittsburgh Opera: The Passion Of Mary Cardwell Dawson','Byham Theater','Pittsburgh, PA','Sunday','5/5/2024','3:00 PM','6286546','Pittsburgh-Opera--The-Passion-Of-Mary-Cardwell-Dawson-5-5-2024'],['Glenn Miller Orchestra','Byham Theater','Pittsburgh, PA','Wednesday','5/8/2024','7:00 PM','6374191','Glenn-Miller-Orchestra-5-8-2024'],['Momix: Alice','Byham Theater','Pittsburgh, PA','Friday','5/10/2024','8:00 PM','6226236','Momix--Alice-5-10-2024'],['Momix','Byham Theater','Pittsburgh, PA','Saturday','5/11/2024','8:00 PM','6390252','Momix-5-11-2024'],['Lucinda Williams','Byham Theater','Pittsburgh, PA','Tuesday','6/18/2024','7:30 PM','6390251','Lucinda-Williams-6-18-2024'],['Dve Comedy Festival','Byham Theater','Pittsburgh, PA','Friday','6/21/2024','8:00 PM','6374185','Dve-Comedy-Festival-6-21-2024'],['Pete Davidson','Byham Theater','Pittsburgh, PA','Friday','6/28/2024','7:00 PM','6370488','Pete-Davidson-6-28-2024'],['Pete Davidson','Byham Theater','Pittsburgh, PA','Friday','6/28/2024','9:30 PM','6388955','Pete-Davidson-6-28-2024'],['Brad Williams','Byham Theater','Pittsburgh, PA','Saturday','7/13/2024','7:00 PM','5860790','Brad-Williams-7-13-2024'],['Brad Williams','Byham Theater','Pittsburgh, PA','Saturday','7/13/2024','10:15 PM','5870254','Brad-Williams-7-13-2024'],['Jeff Arcuri','Byham Theater','Pittsburgh, PA','Saturday','9/14/2024','7:00 PM','6395772','Jeff-Arcuri-9-14-2024'],['Jeff Arcuri','Byham Theater','Pittsburgh, PA','Saturday','9/14/2024','9:30 PM','6413109','Jeff-Arcuri-9-14-2024'],['Girls Gotta Eat','Byham Theater','Pittsburgh, PA','Thursday','9/26/2024','8:00 PM','6354186','Girls-Gotta-Eat-9-26-2024'],['The Fab Four - The Ultimate Tribute','Byham Theater','Pittsburgh, PA','Saturday','10/12/2024','7:30 PM','6387317','The-Fab-Four---The-Ultimate-Tribute-10-12-2024'],['Mike Birbiglia','Byham Theater','Pittsburgh, PA','Saturday','11/23/2024','6:00 PM','6340329','Mike-Birbiglia-11-23-2024']],'Byham Theatre','http://www.ticketnetwork.com/ticket/Byham-Theatre-events.aspx');